package com.zhou.gof.group.factory;

import com.zhou.gof.group.factory.factory.AnimalFactory;

/**
 * @author zhoudong
 * @title: FactoryTest
 * @projectName user-app
 * @description: 工厂设计模式--创建型
 * @date 2019/5/29 12:20
 */
public class FactoryTest {
    public static void main(String[] args) {
        Animal animal = AnimalFactory.getAnimal("dog");
        animal.say("你好");  // 输出 狗：你好
    }

}
